package org.tddx.main;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@SpringBootApplication
@ImportResource(value={"classpath:providers.xml"})
public class MainCtrl {
	
	@RequestMapping("main")
	@ResponseBody
	public String sayhello(){
		return "hello world!!";
	}
	
	public static void main(String[] args) throws Exception {
        SpringApplication.run(MainCtrl.class, args);
    }
	
}
